repo.or.cz
/
EroSomnia.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update Readme.md
[EroSomnia.git]
/
Point and Click Game1
/
Animation.h
blob
16a87a146c6726158c31349816372ab738a3ab6d
1
#pragma once
2
#include <vector>
3
#include <SDL2/SDL.h>
4
5
6
class
Animation
7
{
8
public
:
9
Animation
();
10
Animation
(
std
::
vector
<
SDL_Texture
*>
set
);
11
~
Animation
();
12
13
SDL_Texture
*
itterateAnimation
(
int
framerate
);
14
void
destroyAnimation
();
15
void
resetAnimation
();
16
bool
checkDone
();
17
18
int
counter
;
19
int
gameFPS
;
20
21
bool
done
;
22
23
int
currentPosition
;
24
int
previousPosition
;
25
int
animationSize
;
26
std
::
vector
<
SDL_Texture
*>
frames
;
27
};
28